package org.jeecg.modules.wmhb.service;

import org.jeecg.modules.wmhb.entity.WmContract;
import org.jeecg.modules.wmhb.entity.WmItem;
import org.jeecg.modules.wmhb.entity.WmProject;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 项目表
 * @Author: jeecg-boot
 * @Date:   2024-09-02
 * @Version: V1.0
 */
public interface IWmProjectService extends IService<WmProject> {
    /**
     * 检查项目编码是否唯一
     * @param wmProject
     * @return
     */
    public String checkCodeUnique(WmProject wmProject);

    /**
     * 检查项目名称是否唯一
     * @param wmProject
     * @return
     */
    public String checkNameUnique(WmProject wmProject);

    /**
     * 检查项目名下是否有合同
     * @param id
     * @return
     */
    public boolean checkHasItem(String id);

    /**
     * 已确认过的项目列表(非草稿状态)
     */
    public List<WmProject> confirmedProjectList();

    /**
     * 通过关键字搜索
     */
    public List<WmProject> searchByName(String searchKey);

}
